Release 10.1A: OpenEdge Development:
ADM and SmartObjects


Reviewing conversion results

This section describes the specific changes that occur when converting ADM1 SmartObjects to ADM2 SmartObjects. The changes it describes include ADM1-to-ADM2 SmartObject conversions, specific ADM file-conversion changes, and additional conversion changes.

Table B–5 lists the ADM1-to-ADM2 9 SmartObject file conversions the conversion utility tries to perform.

Table B–5: ADM1 to ADM2 SmartObject conversions 
ADM1 SmartObject
Corresponding ADM2 SmartObject
ADM1 SmartWindow
ADM2 SmartWindow
ADM1 SmartDialog
ADM2 SmartDialog
ADM1 SmartFrame
ADM2 SmartFrame
ADM1 SmartBrowser
ADM2 SmartDataBrowser
ADM1 SmartQuery
ADM2 SmartDataObject
ADM1 SmartViewer
ADM2 SmartDataViewer

Table B–6 identifies specific ADM1-to-ADM2 file conversion changes.

Table B–6: Specific file conversion changes 
For this element...
All...
Are...
RUN DISPATCH 
RUN dispatch [ IN hdl ] 
  ( [ INPUT ] ’proc’ ). 
Converted to:
RUN proc [ IN hdl ] 
Or, if it is a local copy of itself:
RUN SUPER 
RUN NOTIFY 
RUN notify [ IN hdl ] 
  ( [ INPUT ] ’proc’ ). 
Converted to:
PUBLISH ’proc’ [ FROM hdl ] 
GET-ATTRIBUTE 
RUN get-attribute 
  [ IN hdl ] 
  ( [ INPUT ] ) attr’). 
var=RETURN-VALUE. 
Converted to:
var=[hdl:]getpropname ( ). 
SET-ATTRIBUTE-LIST 
RUN set-attribute-list 
  ( [ INPUT ] attr1=val1, 
   attr2=val2, ... ’ ). 
Replaced by:
{setpropname1  val1} 
{setpropname2  val2} 

A variable that contains a list is not converted. You must write your own get and set property functions for any customized attributes.

Some common ADM1 attribute names automatically are converted to the corresponding ADM2 property names (for example, Current-Page to Current Page), based on entries in the file protools/v89names.dat. You can extend this list as described in the "Customizing the conversion utility" section.

This list identifies operations that the conversion utility performs for all converted files:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095